\hypertarget{class_neuron}{\section{Neuron Class Reference}
\label{class_neuron}\index{Neuron@{Neuron}}
}


{\ttfamily \#include $<$neuron.\-hpp$>$}



Collaboration diagram for Neuron\-:
% FIG 0
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_neuron_a823487d01615fadb8ac19a2768dd9d96}{Neuron} ()
\item 
\hyperlink{class_neuron_a94a250ce7e167760e593979b899745b1}{$\sim$\-Neuron} ()
\item 
void \hyperlink{class_neuron_a471ac0d115eb2c16b3a4278f9d8f88e5}{init} (\hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} n\-Conn, \hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} threshold)
\item 
void \hyperlink{class_neuron_a6ee756ddc01b4c332ebfb1a19449453f}{set\-State} (float state)
\item 
float \hyperlink{class_neuron_ab2734b21c9d748fe8c67a41c401e041a}{get\-State} ()
\item 
float \hyperlink{class_neuron_a0bcd9db8844e35e22268568286742117}{set\-State} ()
\item 
void \hyperlink{class_neuron_abcc93d2ce3bf6ade4a50034737d29bda}{copy} (\hyperlink{class_neuron}{Neuron} $\ast$source)
\item 
void \hyperlink{class_neuron_ac231bb1f90ee544bc541c584457e4ac2}{mutate} (int rate)
\item 
void \hyperlink{class_neuron_ada09a088efc0036ee18261c09ab57c8e}{compute} ()
\item 
\hyperlink{structconnection}{connection} $\ast$ \hyperlink{class_neuron_a0cab4dd80848201e0f10fae42b1d8655}{get\-Connections} ()
\item 
\hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} \hyperlink{class_neuron_a4c58bcfd05a9de0c792ccad746ecbd8b}{get\-Num\-Of\-Conn} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} \hyperlink{class_neuron_ac33cc5f02847c1ea2db58262bf26b016}{m\-\_\-n\-Conn}
\item 
\hyperlink{structconnection}{connection} $\ast$ \hyperlink{class_neuron_af6c0c80c1b8e86b392d84b8371d10f23}{m\-\_\-connections}
\item 
float \hyperlink{class_neuron_ad5a9673fbe120c0f6f517f5161e5c440}{m\-\_\-threshold}
\item 
float \hyperlink{class_neuron_ae679bea3dee256f4c6e41a18bcf58b82}{m\-\_\-state}
\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 14 of file neuron.\-hpp.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_neuron_a823487d01615fadb8ac19a2768dd9d96}{\index{Neuron@{Neuron}!Neuron@{Neuron}}
\index{Neuron@{Neuron}!Neuron@{Neuron}}
\subsubsection[{Neuron}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Neuron\-::\-Neuron} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_neuron_a823487d01615fadb8ac19a2768dd9d96}


Definition at line 4 of file neuron.\-cpp.



References m\-\_\-connections, m\-\_\-n\-Conn, m\-\_\-state, and m\-\_\-threshold.

\hypertarget{class_neuron_a94a250ce7e167760e593979b899745b1}{\index{Neuron@{Neuron}!$\sim$\-Neuron@{$\sim$\-Neuron}}
\index{$\sim$\-Neuron@{$\sim$\-Neuron}!Neuron@{Neuron}}
\subsubsection[{$\sim$\-Neuron}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Neuron\-::$\sim$\-Neuron} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_neuron_a94a250ce7e167760e593979b899745b1}


Definition at line 11 of file neuron.\-cpp.



References m\-\_\-connections.



\subsection{Member Function Documentation}
\hypertarget{class_neuron_ada09a088efc0036ee18261c09ab57c8e}{\index{Neuron@{Neuron}!compute@{compute}}
\index{compute@{compute}!Neuron@{Neuron}}
\subsubsection[{compute}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf Neuron\-::compute} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_neuron_ada09a088efc0036ee18261c09ab57c8e}


Definition at line 46 of file neuron.\-cpp.



References get\-State(), m\-\_\-connections, m\-\_\-n\-Conn, m\-\_\-state, connection\-::p\-Neuron, and connection\-::weight.



Here is the call graph for this function\-:
% FIG 1


\hypertarget{class_neuron_abcc93d2ce3bf6ade4a50034737d29bda}{\index{Neuron@{Neuron}!copy@{copy}}
\index{copy@{copy}!Neuron@{Neuron}}
\subsubsection[{copy}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf Neuron\-::copy} (
\begin{DoxyParamCaption}
\item[{{\bf Neuron} $\ast$}]{source}
\end{DoxyParamCaption}
)}}\label{class_neuron_abcc93d2ce3bf6ade4a50034737d29bda}


Definition at line 29 of file neuron.\-cpp.



References m\-\_\-connections, and m\-\_\-n\-Conn.

\hypertarget{class_neuron_a0cab4dd80848201e0f10fae42b1d8655}{\index{Neuron@{Neuron}!get\-Connections@{get\-Connections}}
\index{get\-Connections@{get\-Connections}!Neuron@{Neuron}}
\subsubsection[{get\-Connections}]{\setlength{\rightskip}{0pt plus 5cm}{\bf connection} $\ast$ {\bf Neuron\-::get\-Connections} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_neuron_a0cab4dd80848201e0f10fae42b1d8655}


Definition at line 52 of file neuron.\-cpp.



References m\-\_\-connections.

\hypertarget{class_neuron_a4c58bcfd05a9de0c792ccad746ecbd8b}{\index{Neuron@{Neuron}!get\-Num\-Of\-Conn@{get\-Num\-Of\-Conn}}
\index{get\-Num\-Of\-Conn@{get\-Num\-Of\-Conn}!Neuron@{Neuron}}
\subsubsection[{get\-Num\-Of\-Conn}]{\setlength{\rightskip}{0pt plus 5cm}{\bf uint} {\bf Neuron\-::get\-Num\-Of\-Conn} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{class_neuron_a4c58bcfd05a9de0c792ccad746ecbd8b}


Definition at line 31 of file neuron.\-hpp.



References m\-\_\-n\-Conn.

\hypertarget{class_neuron_ab2734b21c9d748fe8c67a41c401e041a}{\index{Neuron@{Neuron}!get\-State@{get\-State}}
\index{get\-State@{get\-State}!Neuron@{Neuron}}
\subsubsection[{get\-State}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf Neuron\-::get\-State} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_neuron_ab2734b21c9d748fe8c67a41c401e041a}


Definition at line 25 of file neuron.\-cpp.



References m\-\_\-state.



Referenced by compute().



Here is the caller graph for this function\-:
% FIG 2


\hypertarget{class_neuron_a471ac0d115eb2c16b3a4278f9d8f88e5}{\index{Neuron@{Neuron}!init@{init}}
\index{init@{init}!Neuron@{Neuron}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf Neuron\-::init} (
\begin{DoxyParamCaption}
\item[{{\bf uint}}]{n\-Conn, }
\item[{{\bf uint}}]{threshold}
\end{DoxyParamCaption}
)}}\label{class_neuron_a471ac0d115eb2c16b3a4278f9d8f88e5}


Definition at line 15 of file neuron.\-cpp.



References m\-\_\-connections, m\-\_\-n\-Conn, and m\-\_\-threshold.



Referenced by Brain\-::\-Brain().



Here is the caller graph for this function\-:
% FIG 3


\hypertarget{class_neuron_ac231bb1f90ee544bc541c584457e4ac2}{\index{Neuron@{Neuron}!mutate@{mutate}}
\index{mutate@{mutate}!Neuron@{Neuron}}
\subsubsection[{mutate}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf Neuron\-::mutate} (
\begin{DoxyParamCaption}
\item[{int}]{rate}
\end{DoxyParamCaption}
)}}\label{class_neuron_ac231bb1f90ee544bc541c584457e4ac2}


Definition at line 39 of file neuron.\-cpp.



References m\-\_\-connections, m\-\_\-n\-Conn, m\-\_\-threshold, and connection\-::weight.

\hypertarget{class_neuron_a6ee756ddc01b4c332ebfb1a19449453f}{\index{Neuron@{Neuron}!set\-State@{set\-State}}
\index{set\-State@{set\-State}!Neuron@{Neuron}}
\subsubsection[{set\-State}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf Neuron\-::set\-State} (
\begin{DoxyParamCaption}
\item[{float}]{state}
\end{DoxyParamCaption}
)}}\label{class_neuron_a6ee756ddc01b4c332ebfb1a19449453f}


Definition at line 21 of file neuron.\-cpp.



References m\-\_\-state.

\hypertarget{class_neuron_a0bcd9db8844e35e22268568286742117}{\index{Neuron@{Neuron}!set\-State@{set\-State}}
\index{set\-State@{set\-State}!Neuron@{Neuron}}
\subsubsection[{set\-State}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf Neuron\-::set\-State} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_neuron_a0bcd9db8844e35e22268568286742117}


\subsection{Member Data Documentation}
\hypertarget{class_neuron_af6c0c80c1b8e86b392d84b8371d10f23}{\index{Neuron@{Neuron}!m\-\_\-connections@{m\-\_\-connections}}
\index{m\-\_\-connections@{m\-\_\-connections}!Neuron@{Neuron}}
\subsubsection[{m\-\_\-connections}]{\setlength{\rightskip}{0pt plus 5cm}{\bf connection}$\ast$ {\bf Neuron\-::m\-\_\-connections}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{class_neuron_af6c0c80c1b8e86b392d84b8371d10f23}


Definition at line 16 of file neuron.\-hpp.



Referenced by compute(), copy(), get\-Connections(), init(), mutate(), Neuron(), and $\sim$\-Neuron().

\hypertarget{class_neuron_ac33cc5f02847c1ea2db58262bf26b016}{\index{Neuron@{Neuron}!m\-\_\-n\-Conn@{m\-\_\-n\-Conn}}
\index{m\-\_\-n\-Conn@{m\-\_\-n\-Conn}!Neuron@{Neuron}}
\subsubsection[{m\-\_\-n\-Conn}]{\setlength{\rightskip}{0pt plus 5cm}{\bf uint} {\bf Neuron\-::m\-\_\-n\-Conn}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{class_neuron_ac33cc5f02847c1ea2db58262bf26b016}


Definition at line 15 of file neuron.\-hpp.



Referenced by compute(), copy(), get\-Num\-Of\-Conn(), init(), mutate(), and Neuron().

\hypertarget{class_neuron_ae679bea3dee256f4c6e41a18bcf58b82}{\index{Neuron@{Neuron}!m\-\_\-state@{m\-\_\-state}}
\index{m\-\_\-state@{m\-\_\-state}!Neuron@{Neuron}}
\subsubsection[{m\-\_\-state}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf Neuron\-::m\-\_\-state}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{class_neuron_ae679bea3dee256f4c6e41a18bcf58b82}


Definition at line 18 of file neuron.\-hpp.



Referenced by compute(), get\-State(), Neuron(), and set\-State().

\hypertarget{class_neuron_ad5a9673fbe120c0f6f517f5161e5c440}{\index{Neuron@{Neuron}!m\-\_\-threshold@{m\-\_\-threshold}}
\index{m\-\_\-threshold@{m\-\_\-threshold}!Neuron@{Neuron}}
\subsubsection[{m\-\_\-threshold}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf Neuron\-::m\-\_\-threshold}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}\label{class_neuron_ad5a9673fbe120c0f6f517f5161e5c440}


Definition at line 17 of file neuron.\-hpp.



Referenced by init(), mutate(), and Neuron().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\hyperlink{neuron_8hpp}{neuron.\-hpp}\item 
\hyperlink{neuron_8cpp}{neuron.\-cpp}\end{DoxyCompactItemize}
